package com.zs.zcerp.approval.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zs.zcerp.approval.entity.EmpEntity;
import com.zs.zcerp.approval.entity.QhBasestdMEntity;
import com.zs.zcerp.approval.entity.QhBillstdD;
import com.zs.zcerp.approval.entity.QhbillstdmEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ${comments}
 * 
 * @author Henry
 * @email *****@mail.com
 * @date 2021-04-09 20:58:44
 */
public interface QhBasestdMMapper extends BaseMapper<QhBasestdMEntity> {

    /**
     * 查找基础流程详细信息
     *
     * @param page 分页对象
     * @param qhBasestdMEntity 基础流程，用于传递查询条件
     * @return Ipage
     */
    <T> IPage<QhBasestdMEntity> findBaseDetailPage(Page<T> page, @Param("qhBasestdMEntity") QhBasestdMEntity qhBasestdMEntity);


    long countBaseDetail(@Param("qhBasestdMEntity") QhBasestdMEntity qhBasestdMEntity);


    /**
     * 查找基础流程详细信息
     *
     * @param qhBasestdMEntity 基础流程对象，用于传递查询条件
     * @return List<QhBasestdMEntity>
     */
    List<QhBasestdMEntity> findBaseDetail(@Param("qhBasestdMEntity") QhBasestdMEntity qhBasestdMEntity);

    /**
     * 通过流程编号查找流程
     *
     * @param basestdNo 流程编号
     * @return 流程
     */
    QhBasestdMEntity findByBasestdNo(String basestdNo);


    List<EmpEntity> findByorgId(@Param("orgId") String orgId);

    List<QhbillstdmEntity> findList();
}
